.class public final Lnet/tsapps/topdeals/b/g;
.super Landroid/app/Dialog;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static a:I


# instance fields
.field private b:Lnet/tsapps/topdeals/a/n;

.field private c:Landroid/content/DialogInterface$OnClickListener;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/Button;

.field private f:Lnet/tsapps/topdeals/e/b;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x1

    sput v0, Lnet/tsapps/topdeals/b/g;->a:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Ljava/util/List;Lnet/tsapps/topdeals/e/b;Landroid/content/DialogInterface$OnClickListener;)V
    .locals 3

    invoke-direct {p0, p1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    iput-object p5, p0, Lnet/tsapps/topdeals/b/g;->c:Landroid/content/DialogInterface$OnClickListener;

    iput-object p4, p0, Lnet/tsapps/topdeals/b/g;->f:Lnet/tsapps/topdeals/e/b;

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/g;->requestWindowFeature(I)Z

    const v0, 0x7f030007

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/g;->setContentView(I)V

    const v0, 0x7f050025

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/g;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ExpandableListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ExpandableListView;->setGroupIndicator(Landroid/graphics/drawable/Drawable;)V

    new-instance v2, Lnet/tsapps/topdeals/a/n;

    const-string v1, "layout_inflater"

    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/LayoutInflater;

    invoke-direct {v2, v1, p4, p2, p3}, Lnet/tsapps/topdeals/a/n;-><init>(Landroid/view/LayoutInflater;Lnet/tsapps/topdeals/e/b;Ljava/util/List;Ljava/util/List;)V

    iput-object v2, p0, Lnet/tsapps/topdeals/b/g;->b:Lnet/tsapps/topdeals/a/n;

    iget-object v1, p0, Lnet/tsapps/topdeals/b/g;->b:Lnet/tsapps/topdeals/a/n;

    invoke-virtual {v0, v1}, Landroid/widget/ExpandableListView;->setAdapter(Landroid/widget/ExpandableListAdapter;)V

    const v0, 0x7f050024

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/g;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lnet/tsapps/topdeals/b/n;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/b/n;-><init>(Lnet/tsapps/topdeals/b/g;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f050021

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/g;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/g;->d:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->d:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f050020

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/b/g;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/b/g;->e:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->e:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public final a()V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->c:Landroid/content/DialogInterface$OnClickListener;

    sget v1, Lnet/tsapps/topdeals/b/g;->a:I

    invoke-interface {v0, p0, v1}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/g;->dismiss()V

    return-void
.end method

.method public final a(Lnet/tsapps/topdeals/e/b;)V
    .locals 1

    iput-object p1, p0, Lnet/tsapps/topdeals/b/g;->f:Lnet/tsapps/topdeals/e/b;

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->b:Lnet/tsapps/topdeals/a/n;

    iput-object p1, v0, Lnet/tsapps/topdeals/a/n;->a:Lnet/tsapps/topdeals/e/b;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/a/n;->notifyDataSetChanged()V

    return-void
.end method

.method public final b()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->f:Lnet/tsapps/topdeals/e/b;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/e/b;->a()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final onClick(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->e:Landroid/widget/Button;

    if-ne p1, v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->c:Landroid/content/DialogInterface$OnClickListener;

    const/4 v1, 0x0

    invoke-interface {v0, p0, v1}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/g;->dismiss()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lnet/tsapps/topdeals/b/g;->d:Landroid/widget/Button;

    if-ne p1, v0, :cond_0

    invoke-virtual {p0}, Lnet/tsapps/topdeals/b/g;->dismiss()V

    goto :goto_0
.end method
